home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Tools / Turbo Pascal V7 / UTILS.ZIP / DOSEDIT.TEM < prev    next >
Text File  |  1992-11-03  |  3KB  |  107 lines

  1. /***********************************************************************
  2.  
  3.      MS-DOS 5.0 Editor emulation for the Borland/Turbo Pascal IDE.
  4.  
  5.     This file contains a Turbo Editor Macro Language (TEML)
  6. script which emulates the MS-DOS Editor in the Borland/Turbo Pascal IDE.
  7. A complete description of the TEML language and the Turbo Editor Macro 
  8. Compiler (TEMC) can be found in the file "TEMC.DOC".
  9.  
  10.     The TEMC compiler can be invoked from the DOS command line as
  11. follows:
  12.  
  13.       temc [-c] dosedit.tem <IDE configuration file><.CMD><.TP>
  14.  
  15. The optional -c switch can also be specified as /c, and can appear in
  16. any argument position on the command line. If you use this option,
  17. any existing command table in your configuration file is thrown away
  18. before the script file is merged with those already defined. The
  19. configuration file extension must be specified as TEMC will modify both DOS
  20. and Windows IDEs config files.  Specify .CMD or .TP extentions for Windows
  21. or DOS IDE, respectively. If the .CMD file does not exist, it will be 
  22. created. The .TP file must exist, or an error is displayed.
  23.  
  24. Most of the simple editor commands have been fully implemented.  Most
  25. of the complex commands have been either partially implemented or not
  26. implemented at all. Below is a list of the commands that have been
  27. fully or partially implemented.
  28.  
  29. IDE Binding     MS-DOS Editor Command      Comments
  30. -----------     ---------------------      -------------------------
  31. Backspace       BackspaceDelete
  32. Ctrl-H          BackspaceDelete
  33. Del             DeleteChar
  34. Ctrl-G          DeleteChar
  35. Ctrl-T          DeleteWord                 In DOS editor cursor must
  36.                                            be under first letter
  37. Ins             ToggleInsert
  38. Ctrl-V          ToggleInsert
  39. Ctrl-LfAr       WordLeft
  40. Ctrl-RtAr       WordRight
  41. Home            LeftOfLine
  42. End             RightOfLine
  43. Ctrl-Q+E        TopOfScreen
  44. Ctrl-Q+X        BottomOfScreen
  45. Ctrl-W          CursorUp
  46. Ctrl-Z          CursorDown
  47. PgUp            MacPageUp
  48. PgDw            MacPageUp
  49. Ctrl-Home       HomeCursor
  50. Ctrl-Q+R        HomeCursor
  51. Ctrl-End        EndCursor
  52. Ctrl-Q+C        EndCursor
  53.  
  54. **************************************************************************/
  55.  
  56. /****** Macros *************************/
  57.  
  58. MACRO MoveToNextLine
  59.   CursorDown;
  60.   LeftOfLine;
  61. END;
  62.  
  63. MACRO MacPageUp
  64.     FixScreenPos;PageScreenUp;FixCursorPos;
  65. END;
  66.  
  67. MACRO MacPageDown
  68.     FixScreenPos;PageScreenDown;FixCursorPos;
  69. END;
  70.  
  71.  
  72. /****** DOS EDIT Key Bindings **********/
  73.  
  74. BkSp:       BackspaceDelete;
  75. Ctrl-H:     BackspaceDelete;
  76.  
  77. Del:        DeleteChar;
  78. Ctrl-G:     DeleteChar;
  79.  
  80. Ctrl-T:     DeleteWord;
  81.  
  82. Ins:        ToggleInsert;
  83. Ctrl-V:     ToggleInsert;
  84.  
  85. Ctrl-LfAr:  WordLeft;
  86. Ctrl-RgAr:  WordRight;
  87. Home:       LeftOfLine;
  88. End:        RightOfLine;
  89.  
  90. Ctrl-Q+^E:  TopOfScreen;
  91. Ctrl-Q+^X:  BottomOfScreen;
  92.  
  93. Ctrl-W:     CursorUp;
  94. Ctrl-Z:     CursorDown;
  95.  
  96. PgUp:       MacPageUp;
  97. PgDn:       MacPageDown;
  98.  
  99. Ctrl-Home:  HomeCursor;
  100. Ctrl-Q+R:   HomeCursor;
  101.  
  102. Ctrl-End:   EndCursor;
  103. Ctrl-Q+C:   EndCursor;
  104.  
  105.  
  106.  
  107.